package com.seu.design.pattern.creational.abstractfactory;

/**
 * Created by seu-lfh
 */
public class Test {

    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        Video video = courseFactory.getVideo();
        Article article = courseFactory.getArticle();
        video.produce();
        article.produce();

        System.out.println("--------------------------");

        CourseFactory courseFactory2 = new PythonCourseFactory();
        Video video2 = courseFactory2.getVideo();
        Article article2 = courseFactory2.getArticle();
        video2.produce();
        article2.produce();
    }

}
